generator
public class PasswordGenerator extends java.lang.Object
| Constructor and Description |
|---|
PasswordGenerator()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateCode()
Generates the password.
|
void |
handleLevel(int levelIndex)
Handles the level portion of the password.
|
void |
handleLives(int lives)
Handles the lives portion of the password.
|
void |
handleMap(int mapIndex)
Handles the map portion of the password.
|
void |
handlePod(int index)
Handles the pod portion of the password.
|
void |
handleScore(java.lang.String score)
Handle the score portion of the password.
|
void |
handleShields(boolean hasShields)
Handles the shields portion of the password.
|
void |
handleThrusters(boolean hasThrusters)
Handles the thrusters portion of the password.
|
boolean |
isValidScore(java.lang.String score)
Check if the passed in score is a valid score to use in this generator.
|
public boolean isValidScore(java.lang.String score)
score - public void handleScore(java.lang.String score)
score - The inputted score.public void handlePod(int index)
index - The index the pod was located at in the form.public void handleShields(boolean hasShields)
hasShields - true if shields false if notpublic void handleThrusters(boolean hasThrusters)
hasThrusters - true if thrusters false if notpublic void handleLives(int lives)
lives - The number of lives 0-15public void handleLevel(int levelIndex)
levelIndex - The index of the level selected from the form.public void handleMap(int mapIndex)
mapIndex - public java.lang.String generateCode()